import request from '../utils/request'

export function fecthList(params){
   return request({
        url: '/roomInfo/getRoomInfoList',
        method: 'post',
        data: params
})
}

export function getRoomType(){
    return request({
        url: '/roomType/queryAllRoomType',
        method: 'post'
    })
}

export function getById(id){
    return request({
         url: '/roomInfo/getRoomInfoById',
         method: 'post',
         params: {id}
    })
 }
export function add(data){
    return request({
         url: '/roomInfo/addRoomInfo',
         method: 'post',
         data
    })
 }
 export function update(data){
    return request({
         url: '/roomInfo/updateRoomInfo',
         method: 'post',
         data
    })
 }
 export function deleteOne(id){
    return request({
         url: '/roomInfo/deleteRoomInfo',
         method: 'post',
         data: [id]
    })
 }
 export function deleteByIds(id){
    return request({
         url: '/roomInfo/deleteRoomInfo',
         method: 'post',
         data: id
    })
 }
